home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVPLAY / IMVSET.C < prev    next >
C/C++ Source or Header  |  1994-06-01  |  12KB  |  531 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    setDialogId ;
  9. extern int    setMesId[17] ;
  10. extern int    setOKBtnId ;
  11. extern int    setOKchk() ;
  12. extern int    setCanBtnId ;
  13. extern int    setSubDialogId ;
  14. extern int    waitNumId ;
  15. extern int    waitSet() ;
  16. extern int    setBtnId[9] ;
  17. extern int    screenSet() ;
  18. extern int    playSet() ;
  19. extern int    zoomSet() ;
  20.  
  21. #define ALIGN    4
  22. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  23.  
  24. /*    MMI_init ùpâfü[â^    */
  25.  
  26. /*    âwâbâ_    */
  27.  
  28. MMIINIT    initDataIMVSET = { "MmiInit",  31, 0 } ;
  29.  
  30. /* setDialogId */
  31.  
  32. static MMIPACKET d001 = {    &setDialogId,
  33.                             NULL,
  34.                             &MJ_DIALOGL40,
  35.                             OFFSET(DIALOGL40),
  36.                             MS_NONE
  37.                         } ;
  38. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  39.                              160, 115, 480, 365, 8, 4, 8,
  40.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  41.                             NULL,   0,   0
  42.                         } ;
  43.  
  44. /* setMesId[0] */
  45.  
  46. static MMIPACKET d002 = {    &setMesId[0],
  47.                             &setDialogId,
  48.                             &MJ_MSGL40,
  49.                             OFFSET(MSGL40),
  50.                             MS_NONE
  51.                         } ;
  52. static MSGL40    d002d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  53.                              180, 118, 339, 141, 0,15, 8,
  54.                             MS_NONEL40,
  55.                             "élénéuì─É╢ò√û@é╠É▌ÆΦ",
  56.                                1,  12,  12,
  57.                             MS_BOLDL40,
  58.                                3,   0
  59.                         } ;
  60.  
  61. /* setOKBtnId */
  62.  
  63. static MMIPACKET d003 = {    &setOKBtnId,
  64.                             &setDialogId,
  65.                             &MJ_DBUTTONL40,
  66.                             OFFSET(DBUTTONL40),
  67.                             MS_NONE
  68.                         } ;
  69. static DBUTTONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  70.                              225, 334, 286, 356,12, 4, 8,
  71.                             MS_PANELL40 | MS_FRAMEL40,
  72.                             setOKchk,
  73.                             0x8012
  74.                         } ;
  75.  
  76. /* setMesId[15] */
  77.  
  78. static MMIPACKET d004 = {    &setMesId[15],
  79.                             &setDialogId,
  80.                             &MJ_MSGL40,
  81.                             OFFSET(MSGL40),
  82.                             MS_NONE
  83.                         } ;
  84. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  85.                              226, 336, 285, 355, 0, 7, 8,
  86.                             MS_NONEL40,
  87.                             "É▌  ÆΦ",
  88.                                1,  12,  12,
  89.                             MS_NONEL40,
  90.                                0,   0
  91.                         } ;
  92.  
  93. /* setCanBtnId */
  94.  
  95. static MMIPACKET d005 = {    &setCanBtnId,
  96.                             &setDialogId,
  97.                             &MJ_DBUTTONL40,
  98.                             OFFSET(DBUTTONL40),
  99.                             MS_NONE
  100.                         } ;
  101. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  102.                              354, 334, 415, 356,10, 4, 8,
  103.                             MS_PANELL40 | MS_FRAMEL40,
  104.                             setOKchk,
  105.                             0x8011
  106.                         } ;
  107.  
  108. /* setMesId[7] */
  109.  
  110. static MMIPACKET d006 = {    &setMesId[7],
  111.                             &setDialogId,
  112.                             &MJ_MSGL40,
  113.                             OFFSET(MSGL40),
  114.                             MS_NONE
  115.                         } ;
  116. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  117.                              355, 336, 414, 355, 0, 7, 8,
  118.                             MS_NONEL40,
  119.                             "ĵ  Å┴",
  120.                                1,  12,  12,
  121.                             MS_NONEL40,
  122.                                0,   0
  123.                         } ;
  124.  
  125. /* setSubDialogId */
  126.  
  127. static MMIPACKET d007 = {    &setSubDialogId,
  128.                             &setDialogId,
  129.                             &MJ_DIALOGL40,
  130.                             OFFSET(DIALOGL40),
  131.                             MS_NONE
  132.                         } ;
  133. static DIALOGL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  134.                              180, 142, 461, 327, 8, 4, 8,
  135.                             MS_DFRAMEL40 | MS_FRAMEL40,
  136.                             NULL,   0,   0
  137.                         } ;
  138.  
  139. /* setMesId[8] */
  140.  
  141. static MMIPACKET d008 = {    &setMesId[8],
  142.                             &setSubDialogId,
  143.                             &MJ_MSGL40,
  144.                             OFFSET(MSGL40),
  145.                             MS_NONE
  146.                         } ;
  147. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  148.                              218, 149, 287, 164, 0,15, 8,
  149.                             MS_NONEL40,
  150.                             "âEâFâCâg",
  151.                                1,  12,  12,
  152.                             MS_NONEL40,
  153.                                0,   0
  154.                         } ;
  155.  
  156. /* waitNumId */
  157.  
  158. static MMIPACKET d009 = {    &waitNumId,
  159.                             &setSubDialogId,
  160.                             &MJ_NUMBOXL40,
  161.                             OFFSET(NUMBOXL40),
  162.                             MS_NONE
  163.                         } ;
  164. static NUMBOXL40    d009d =     {    MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
  165.                              216, 170, 291, 193, 8, 4, 8,
  166.                             MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
  167.                             waitSet,
  168.                                1,  12,  12,
  169.                             MS_NONEL40,
  170.                                0,   0,
  171.                                0,   0,  99,   1,   0,
  172.                              263, 264
  173.                         } ;
  174.  
  175. /* setMesId[1] */
  176.  
  177. static MMIPACKET d010 = {    &setMesId[1],
  178.                             &setSubDialogId,
  179.                             &MJ_MSGL40,
  180.                             OFFSET(MSGL40),
  181.                             MS_NONE
  182.                         } ;
  183. static MSGL40    d010d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  184.                              355, 149, 436, 164, 0,15, 8,
  185.                             MS_NONEL40,
  186.                             "ò\Īâéü[âh",
  187.                                1,  12,  12,
  188.                             MS_NONEL40,
  189.                                0,   0
  190.                         } ;
  191.  
  192. /* setBtnId[0] */
  193.  
  194. static MMIPACKET d011 = {    &setBtnId[0],
  195.                             &setSubDialogId,
  196.                             &MJ_TICONL40,
  197.                             OFFSET(TICONL40),
  198.                             MS_NONE
  199.                         } ;
  200. static TICONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  201.                              346, 167, 441, 183, 8, 4, 8,
  202.                             MS_NONEL40,
  203.                             screenSet,
  204.                             0x0000, 259, 260
  205.                         } ;
  206.  
  207. /* setMesId[2] */
  208.  
  209. static MMIPACKET d012 = {    &setMesId[2],
  210.                             &setSubDialogId,
  211.                             &MJ_MSGL40,
  212.                             OFFSET(MSGL40),
  213.                             MS_NONE
  214.                         } ;
  215. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  216.                              370, 167, 450, 183, 0,15, 8,
  217.                             MS_NONEL40,
  218.                             "ânâCâXâLâââô",
  219.                                1,  12,  12,
  220.                             MS_NONEL40,
  221.                                0,   0
  222.                         } ;
  223.  
  224. /* setBtnId[1] */
  225.  
  226. static MMIPACKET d013 = {    &setBtnId[1],
  227.                             &setSubDialogId,
  228.                             &MJ_TICONL40,
  229.                             OFFSET(TICONL40),
  230.                             MS_NONE
  231.                         } ;
  232. static TICONL40    d013d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  233.                              346, 187, 441, 203, 8, 4, 8,
  234.                             MS_NONEL40,
  235.                             screenSet,
  236.                             0x0000, 259, 260
  237.                         } ;
  238.  
  239. /* setMesId[3] */
  240.  
  241. static MMIPACKET d014 = {    &setMesId[3],
  242.                             &setSubDialogId,
  243.                             &MJ_MSGL40,
  244.                             OFFSET(MSGL40),
  245.                             MS_NONE
  246.                         } ;
  247. static MSGL40    d014d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  248.                              370, 187, 450, 203, 0,15, 8,
  249.                             MS_NONEL40,
  250.                             "âìü[âXâLâââô",
  251.                                1,  12,  12,
  252.                             MS_NONEL40,
  253.                                0,   0
  254.                         } ;
  255.  
  256. /* setMesId[16] */
  257.  
  258. static MMIPACKET d015 = {    &setMesId[16],
  259.                             &setSubDialogId,
  260.                             &MJ_MSGL40,
  261.                             OFFSET(MSGL40),
  262.                             MS_NONE
  263.                         } ;
  264. static MSGL40    d015d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  265.                              352, 214, 438, 229, 0,15, 8,
  266.                             MS_NONEL40,
  267.                             "âfü[â^ò█æ╢ù╠êµ",
  268.                                1,  12,  12,
  269.                             MS_NONEL40,
  270.                                0,   0
  271.                         } ;
  272.  
  273. /* setBtnId[2] */
  274.  
  275. static MMIPACKET d016 = {    &setBtnId[2],
  276.                             &setSubDialogId,
  277.                             &MJ_TICONL40,
  278.                             OFFSET(TICONL40),
  279.                             MS_NONE
  280.                         } ;
  281. static TICONL40    d016d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  282.                              346, 232, 441, 248, 8, 4, 8,
  283.                             MS_NONEL40,
  284.                             playSet,
  285.                             0x0000, 259, 260
  286.                         } ;
  287.  
  288. /* setMesId[9] */
  289.  
  290. static MMIPACKET d017 = {    &setMesId[9],
  291.                             &setSubDialogId,
  292.                             &MJ_MSGL40,
  293.                             OFFSET(MSGL40),
  294.                             MS_NONE
  295.                         } ;
  296. static MSGL40    d017d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  297.                              370, 232, 450, 248, 0,15, 8,
  298.                             MS_NONEL40,
  299.                             "âüâéâè",
  300.                                1,  12,  12,
  301.                             MS_NONEL40,
  302.                                0,   0
  303.                         } ;
  304.  
  305. /* setBtnId[3] */
  306.  
  307. static MMIPACKET d018 = {    &setBtnId[3],
  308.                             &setSubDialogId,
  309.                             &MJ_TICONL40,
  310.                             OFFSET(TICONL40),
  311.                             MS_NONE
  312.                         } ;
  313. static TICONL40    d018d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  314.                              346, 252, 441, 268, 8, 4, 8,
  315.                             MS_NONEL40,
  316.                             playSet,
  317.                             0x0000, 259, 260
  318.                         } ;
  319.  
  320. /* setMesId[10] */
  321.  
  322. static MMIPACKET d019 = {    &setMesId[10],
  323.                             &setSubDialogId,
  324.                             &MJ_MSGL40,
  325.                             OFFSET(MSGL40),
  326.                             MS_NONE
  327.                         } ;
  328. static MSGL40    d019d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  329.                              370, 252, 450, 268, 0,15, 8,
  330.                             MS_NONEL40,
  331.                             "âfâBâXâN",
  332.                                1,  12,  12,
  333.                             MS_NONEL40,
  334.                                0,   0
  335.                         } ;
  336.  
  337. /* setMesId[6] */
  338.  
  339. static MMIPACKET d020 = {    &setMesId[6],
  340.                             &setSubDialogId,
  341.                             &MJ_MSGL40,
  342.                             OFFSET(MSGL40),
  343.                             MS_NONE
  344.                         } ;
  345. static MSGL40    d020d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  346.                              209, 212, 296, 227, 0,15, 8,
  347.                             MS_NONEL40,
  348.                             "ò\Īö{ùª",
  349.                                1,  12,  12,
  350.                             MS_NONEL40,
  351.                                0,   0
  352.                         } ;
  353.  
  354. /* setBtnId[4] */
  355.  
  356. static MMIPACKET d021 = {    &setBtnId[4],
  357.                             &setSubDialogId,
  358.                             &MJ_TICONL40,
  359.                             OFFSET(TICONL40),
  360.                             MS_NONE
  361.                         } ;
  362. static